package com.saihai.jiankang.jkUser.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.saihai.common.annotation.Excel;
import com.saihai.common.core.domain.BaseEntity;

/**
 * 健康微信用户对象 jk_user
 * 
 * @author ruoyi
 * @date 2024-06-25
 */
public class JkUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** 微信会话秘钥 */
    private String sessionKey;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 头像 */
    @Excel(name = "头像")
    private String avatarurl;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 角色：0医生1学生2家长 */
    @Excel(name = "角色：0医生1学生2家长")
    private String role;

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setOpenid(String openId)
    {
        this.openid = openId;
    }

    public String getOpenid()
    {
        return openid;
    }
    public void setNickName(String nickName) 
    {
        this.nickname = nickname;
    }

    public String getNickname()
    {
        return nickname;
    }
    public void setAvatarurl(String avatarurl) 
    {
        this.avatarurl = avatarurl;
    }

    public String getAvatarurl() 
    {
        return avatarurl;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setRole(String role) 
    {
        this.role = role;
    }

    public String getRole() 
    {
        return role;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("openid", getOpenid())
            .append("nickName", getNickname())
            .append("avatarurl", getAvatarurl())
            .append("mobile", getMobile())
            .append("role", getRole())
            .toString();
    }
}
